import React from "react"
import { scheduleUpdateOnFiber } from "./reactFiberWookLoop"

function render(ele: React.FC, container: HTMLElement) {
    
    const FiberRoot:IFiber = {
        type: container.nodeName.toLocaleLowerCase(),
        props: { children: ele({}) },
        stateNode: container,
    }
    scheduleUpdateOnFiber(FiberRoot)
}

export default { render }